<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>4拼团-我发起的成团</title>
<link  href="__PUBLIC__/Wechat/api/css/style.css" rel="stylesheet"  type="text/css">
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/wmx80.js"></script>
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/Vip/groupdetail.js"></script>
<script type="text/javascript">$("document").ready(groupdetail_obj.groupdetail_init);</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script type="text/javascript" src="__PUBLIC__/Wechat/js/share1.js"></script>
<script>
			
			
			var domain={
	            www:'{:C('WEB_ABSOLUTE_URL')}',
	            static:'{:C('WEB_ABSOLUTE_URL')}',
	            img:'{:C('WEB_ABSOLUTE_URL')}',
	            file:'{:C('WEB_ABSOLUTE_URL')}',
	            kf:'{:C('WEB_ABSOLUTE_URL')}'
			    };	
				var config={
						 appid: '{$userconfiginfo.appid}',
						 timestamp:'{$signpackage.timestamp}',
						 nonceStr:'{$signpackage.nonceStr}',
						 signature:'{$signpackage.signature}',
				}
			
			var share={
					title:'{$share.title}',
					desc:'{$share.desc}',
					img_url:'{$share.imgpath}',
					url:'{$share.url}'
				}
		    share_obj.shareConfig_init(config);
			share_obj.share_init(share);
			
		</script>

</head>

<body bgcolor="#f5f5f5">
<div class="header">
	<h1>团详情</h1>
    <a href="javascript:history.back()" class="arrow-wrap"><em class="arrow-left"></em></a>
    <a href="?s=/Vip/index"><img src="__PUBLIC__/Wechat/api/images/me1.png"></a>
</div>
<div id="current-time"></div>
<div class="pd10 launchgroup">
	<div class="section1 bgfff clearfix">
    	<div class="pic"><img src="{$grouplog.headimgurl}"></div>
        <div class="timewrap">
        	<div class="title">{$grouplog.nickname}发起的团购</div>
            <if condition="$group.period eq 0">
	            		<if condition="$group.status eq 1">&nbsp;</if>
	            		<if condition="$group.status eq 2">已成团</if>
	            		<if condition="$group.status eq 3">已发货</if>
	            		<if condition="$group.status eq 4">已完成</if>
	            		<if condition="$group.status eq 5">已取消</if>
	            		<if condition="$group.status eq 6">已过期</if>
	            	<else />
		            	<if condition="$group.status eq 1"><em>还有</em><div class="time"></div>结束</if>
	            		<if condition="$group.status eq 2">已成团</if>
	            		<if condition="$group.status eq 3">已发货</if>
	            		<if condition="$group.status eq 4">已完成</if>
	            		<if condition="$group.status eq 5">已取消</if>
	            		<if condition="$group.status eq 6">已过期</if>		
	            </if>
        </div>
    </div>
    <div class="section2 bgfff">
    	<dl class="clearfix">
        	<dt><img src="{$grouplog.productcoverimg}"></dt>
        	<dd><p>{$grouplog.productname}</p></dd>
            <dd><i>成团价：￥{$grouplog.productprice}</i><span>市场价：<em>￥{$grouplog.oriprice}</em></span></dd>
            <dd><a href="?s=/Mall/productDetail/id/{$grouplog.productid}">点击查看产品详情</a></dd>
    	</dl>
    </div>
    <div class="section3 bgfff">
    	<div class="title">已有{$group.hasjoin}人参团，距离成团仅剩{$group.wanting}个名额</div>
        <ul class="cont clearfix">
        	<volist name="headimg" id="headimgurl">
        		<if condition="$headimgurl.imgurl eq null">
        			<li><a href="#"><img src="__PUBLIC__/Wechat/api/images/jiaico.png"></a></li>
        			<else />
        			<li><a href="#"><img src="{$headimgurl.imgurl}"></a></li>
        		</if>
            <!-- <li><a href="#"><img src="__PUBLIC__/Wechat/api/images/jiaico.png"></a></li>
            <li><a href="#"><img src="__PUBLIC__/Wechat/api/images/jiaico.png"></a></li> -->
            </volist>
        </ul>
    </div>
    <div class="fixedwrap">
    	<div class="btns"><a href="javascript:;">邀请好友参团吧！</a></div>
    </div>
</div>
<div class="sharetips"><img src="__PUBLIC__/Wechat/api/images/sharetips.png"></div>
<script type="text/javascript" src="__PUBLIC__/Wechat/api/js/jquery.downCount.js"></script> 
<script type="text/javascript">
	//var grouplogcreatetime = "{$grouplog.createtime}";
	var grouplogperiod = "{$grouplog.period}";
	var groupstatus = "{$group.status}";
	var groupid = "{$grouplog.groupid}";
	var grouplogisexpired = "{$grouplog.isexpired}";
	$(function(){
		$(".time").countdown({
		timestamp : grouplogperiod*1000
			//grouplogcreatetime*1000 + grouplogperiod*60*60*1000
	})
	})
</script>
</body>
</html>
